package com.qys.livesMall.product.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * H2ShopCategory对象
 * </p>
 *
 * @author gmx
 * @since 2023-05-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class H2ProductCategoryDTO implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    private Long id;
    /**
     * 父id
     */
    @Schema(description = "父id")
    private Long parentId;
    /**
     * 分类名字
     */
    @Schema(description = "分类名字")
    private String name;
    /**
     * 别名
     */
    @Schema(description = "别名")
    private String displayName;
    /**
     * 层级
     */
    @Schema(description = "层级")
    private String level;
    /**
     * 图片
     */
    @Schema(description = "图片")
    private String image;
    /**
     * 邮费
     */
    @Schema(description = "邮费")
    private BigDecimal postage;

    private List<H2ProductCategory> child;

}
